Class com.symantec.itools.beans.TaggedIntPropertyEditor
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.symantec.itools.beans.TaggedIntPropertyEditor

Object
   |
   +----PropertyEditorSupport
           |
           +----com.symantec.itools.beans.TaggedIntPropertyEditor

public class TaggedIntPropertyEditor
extends PropertyEditorSupport

Class Index

 o com.symantec.itools.beans.TaggedIntPropertyEditor. TaggedInt

Variable Index

 o m_Tags

Constructor Index

 o com.symantec.itools.beans.TaggedIntPropertyEditor(TaggedIntPropertyEditor. TaggedInt[])

Method Index

 o getAsText()
 o getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property.
 o getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tag values.
 o getValueAsInteger()
 o getValueAsString(boolean)
 o setAsText(String)
Set the property value by parsing a given String.
 o setValueAsInteger(Integer)

Variables

 o m_Tags
protected com.symantec.itools.beans.TaggedIntPropertyEditor. TaggedInt[] m_Tags

Constructors

 o TaggedIntPropertyEditor
public TaggedIntPropertyEditor(TaggedIntPropertyEditor.TaggedInt[] tags)

Methods

 o getAsText
public java.lang.String getAsText()

Returns:
The property value as a string suitable for presentation to a human to edit.

Returns "null" is the value can't be expressed as a string.

If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().

Overrides:
getAsText in class PropertyEditorSupport
 o getJavaInitializationString
public java.lang.String getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property. It should return a fragment of Java code that can be used to initialize a variable with the current property value.

Example results are "2", "new Color(127,127,34)", "Color.orange", etc.

Returns:
A fragment of Java code representing an initializer for the current value.
Overrides:
getJavaInitializationString in class PropertyEditorSupport
 o getTags
public java.lang.String[] getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tag values. This can be used to represent (for example) enum values. If a PropertyEditor supports tags, then it should support the use of setAsText with a tag value as a way of setting the value.

Returns:
The tag values for this property. May be null if this property cannot be represented as a tagged value.
Overrides:
getTags in class PropertyEditorSupport
 o getValueAsInteger
protected java.lang.Integer getValueAsInteger()
 o getValueAsString
protected java.lang.String getValueAsString(boolean tag)
 o setAsText
public void setAsText(String text) throws IllegalArgumentException
Set the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text.

Parameters:
text - The string to be parsed.
Overrides:
setAsText in class PropertyEditorSupport
 o setValueAsInteger
protected void setValueAsInteger(Integer newValue)

All Packages  Class Hierarchy  This Package  Previous  Next  Index